const mysql = require('mysql');
const { dbconf } = require('../index');

const db = mysql.createConnection(dbconf);

db.connect((err) => {
    if(err) throw err;
    console.log('db connect successfully !');
})

module.exports = db;